Tweak AdditionOverflowInLoaderExifJpeg for 32bit unsigned char OSes
authorPino Toscano <pino@debian.org>
Sun, 31 Aug 2025 11:13:18 +0000 (13:13 +0200)
committerPino Toscano <pino@debian.org>
Sun, 31 Aug 2025 11:13:18 +0000 (13:13 +0200)
commit392d888b4d6902496e4e345d6c1496adfca3006d
treee90a860bac6ba234e082a102b45332ccd766878a
parentab9296ca0ab2e2a12e4819087bcc189999b724bf
Tweak AdditionOverflowInLoaderExifJpeg for 32bit unsigned char OSes

Last-Update: 2023-07-16
Forwarded: not-needed

AdditionOverflowInLoaderExifJpeg expects an overflow to happen on 32bit
architectures; due to the way LoaderExifJpeg & StringValueBase work and the
test data is fabricated, the overflow happens only architectures with signed
char.

Tweak AdditionOverflowInLoaderExifJpeg to account for this, by not expecting an
overflow in case the architecture has unsigned char (e.g. ARM and POWER).

For more discussion and notes, see: https://github.com/Exiv2/exiv2/issues/933

Gbp-Pq: Name tests-overflow-skip-unsigned-char-23bit.diff
tests/bugfixes/github/test_CVE_2018_12265.py